#pragma once

#include <mytypes.h>
#include <mythread.hxx>

#include <string>

using namespace std;

class FileLog;

class AttackWorker : public Thread
{
    public:
        AttackWorker(int port, const string& proxy, FileLog* filelog);

        void Shutdown(void);
        virtual void Attack(void);
        virtual void StopAttack(void);

    protected:

        virtual void Execute(Thread::Arg);

        static const string Host;
        int _port;
        const string _proxy;

        bool _isattacking;
        bool _is_shutdown_requested;
        FileLog* _filelog;
};
